package com.woniuxy.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author why
 * @since 2023-09-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain=true)
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    @JsonIgnore
    private String password;

    /**
     * 部门编号
     */
    private String sid;

    /**
     * 鎵嬫満鍙?
     */
    private String cellphone;

    /**
     * 创建时间
     */
    private String time;

    /**
     * 创建人
     */
    private Integer aid;

    /**
     * 状态
     */
    private String state;


    // 多个权限
    @TableField(exist = false)
    private List<Role> roleList;

    // 记录部门名称
    @TableField(exist = false)
    private String department;

    @TableField(exist = false)
    private Boolean status;



}
